3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage surface shaders.
You can use the Q3SurfaceShader_GetType function to get the type of a surface shader.
TQ3ObjectType Q3SurfaceShader_GetType (TQ3SurfaceShaderObject shader);
The Q3SurfaceShader_GetType function returns, as its function result, the type of the surface shader specified by the shader parameter. The types of surface shaders currently supported by QuickDraw 3D are defined by these constants:
kQ3SurfaceShaderType_Texture
If the specified surface shader is invalid or is not one of these types, Q3SurfaceShader_GetType returns the value kQ3ObjectTypeInvalid .
Previous | QD3D Book | Overview | Chapter Contents | Next |